package cn.geckos.mock
{
	import cn.geckos.ioc.IConfig;

	public class Config implements IConfig
	{
		public function getContent():XML
		{
			// test factory basic functionality
			var xml:XML = 
						<beans>
							<bean id='t1' clazz='cn.geckos.mock.StackMock'>
								<property name='array'>
									<stack>
										<value>hi</value>
										<ref bean='t2'/>
									</stack>
								</property>
							</bean>
							<bean id='t2' clazz='cn.geckos.mock.StackMock'>
								<property name='array'>
									<stack>
										<value>hi</value>
										<value>this</value>
										<value>is</value>
										<value>jeff</value>
									</stack>
								</property>
							</bean>
							
							<bean id='t3' clazz='cn.geckos.mock.StackMock' scope='prototype'>
								<property name='array'>
									<stack>
										<value>hi</value>
										<ref bean='t4'/>
										<ref bean='t5'/>
									</stack>
								</property>
							</bean>
							<bean id='t4' clazz='cn.geckos.mock.StackMock' scope='singleton'>
								<property name='array'>
									<stack>
										<value>hi</value>
										<value>this</value>
										<value>is</value>
										<value>jeff</value>
									</stack>
								</property>
							</bean>
							<bean id='t5' clazz='cn.geckos.mock.StackMock' scope='singleton'>
								<property name='array'>
									<stack>
										<value>hi</value>
										<value>this</value>
										<value>is</value>
										<value>jeff</value>
									</stack>
								</property>
							</bean>
						</beans>
			// test factory capability
			/*var xml:XML = 
						<beans>
							<bean id='t1' clazz='cn.geckos.mock.StackMock' scope='prototype'>
								<property name='array'>
									<stack>
										<value>hi</value>
										<ref bean='t2'/>
									</stack>
								</property>
							</bean>
							<bean id='t2' clazz='cn.geckos.mock.StackMock' scope='prototype'>
								<property name='array'>
									<stack>
										<value>hi</value>
										<ref bean='t3'/>
									</stack>
								</property>
							</bean>
							<bean id='t3' clazz='cn.geckos.mock.StackMock' scope='prototype'>
								<property name='array'>
									<stack>
										<value>hi</value>
										<ref bean='t4'/>
									</stack>
								</property>
							</bean>
							<bean id='t4' clazz='cn.geckos.mock.StackMock' scope='prototype'>
								<property name='array'>
									<stack>
										<value>hi</value>
										<ref bean='t5'/>
									</stack>
								</property>
							</bean>
							<bean id='t5' clazz='cn.geckos.mock.StackMock' scope='prototype'>
								<property name='array'>
									<stack>
										<value>hi</value>
										<ref bean='t6'/>
									</stack>
								</property>
							</bean>
							<bean id='t6' clazz='cn.geckos.mock.StackMock' scope='prototype'>
								<property name='array'>
									<stack>
										<value>hi</value>
										<ref bean='t7'/>
									</stack>
								</property>
							</bean>
							<bean id='t7' clazz='cn.geckos.mock.StackMock' scope='prototype'>
								<property name='array'>
									<stack>
										<value>hi</value>
										<ref bean='t8'/>
									</stack>
								</property>
							</bean>
							<bean id='t8' clazz='cn.geckos.mock.StackMock' scope='prototype'>
								<property name='array'>
									<stack>
										<value>hi</value>
										<ref bean='t9'/>
									</stack>
								</property>
							</bean>
							<bean id='t9' clazz='cn.geckos.mock.StackMock' scope='prototype'>
								<property name='array'>
									<stack>
										<value>hi</value>
										<ref bean='t10'/>
									</stack>
								</property>
							</bean>
							<bean id='t10' clazz='cn.geckos.mock.StackMock' scope='prototype'>
								<property name='array'>
									<stack>
										<value>hi</value>
										<ref bean='t11'/>
									</stack>
								</property>
							</bean>
							<bean id='t11' clazz='cn.geckos.mock.StackMock' scope='prototype'>
								<property name='array'>
									<stack>
										<value>hi</value>
										<ref bean='t12'/>
									</stack>
								</property>
							</bean>
							<bean id='t13' clazz='cn.geckos.mock.StackMock' scope='prototype'>
								<property name='array'>
									<stack>
										<value>hi</value>
									</stack>
								</property>
							</bean>
						</beans>*/
			return xml;
		}
		
	}
}